package com.zto.sch.web;

import com.zto.sch.entity.People;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-12-24 16:58
 **/
@RestController
@RequestMapping("hello")
public class JsonSerilizeController {

    @RequestMapping("json")
    public People jsonSerilizeHello() {
        People people = People.builder().birthDay(new Date())
                .name("如花")
                .mobile("18888889999").build();
        return people;
    }
}
